package d0309;

public class HumanStatic {
    public static String population = "灵长目";


    //静态成员方法
    public static void setPopulation(String newPopulation){
        population = newPopulation;
    }

    public static void main(String[] args) {
        //可以通过类直接调用静态成员方法
        HumanStatic.setPopulation("灵长目2");
        //可以通过类直接调用静态成员变量
        System.out.println(HumanStatic.population);
    }
}
